<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>

</head>
<body>
    <script>
    //     $.get('http://39.96.21.48:5588/address/findAll',function(re){
    //     console.log(re)
    // })
        // 1.先查询出来第一个顾客的信息
        // 2.获取该用户ID
        // 3.再根据某个顾客的ID查询出来对应的评论
         $.ajax({
            url:'http://39.96.21.48:5588/customer/findAll',
            method:'get',
            success:function(res){
               
                console.log(res.data[0].id);
                var obj = {
                    cusId:res.data[0].id
                }
                console.log(obj);
                $.ajax({
                url:'http://39.96.21.48:5588/comment/findCommentByCus',
                method:'get',
                data:obj,
                success:function(comment){
                // console.log(res.data[0].id);
                console.log(comment);
            }
        })
            }
        })
    </script>
</body>
</html>